package com.qfedu.edu.classservice.feign;

import com.qfedu.edu.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author xiaobobo
 * @title: StockStorageService
 * @projectName seckill-fy-2401-parent
 * @description: 第三方服务的调用
 * @date 2024/11/6  15:44
 */
@FeignClient("stock-service")
public interface StockStorageService {

 /**
  * 添加库存信息
  * @param classId
  * @param count
  * @return
  */
 @PostMapping("/stockservice/stock-storage/addStock")
 @ResponseBody
 R addStock(@RequestParam("classId") String classId, @RequestParam("count") Integer count);

}
